import {NgModule} from '@angular/core';
import {CommonModule} from '@angular/common';
import {Router, RouterModule} from '@angular/router';
import {PermissionsRoutingModule} from './permissions-routing.module';
import {AccountComponent} from './account/account.component';
import {RoleComponent} from './role/role.component';
import {FormsModule} from '@angular/forms';
import {PaginationModule, Ng2BootstrapModule} from 'ngx-bootstrap';
import {RoleService} from '../../lib/service/admin/role.service';
import {NotificationModule} from '../../comm-components/notification/notification.module';
import {PermissionComponent} from './permission/permission.component';
import {CategoryComponent} from './category/category.component';
import { PTreeComponent } from './p-tree/p-tree.component';
import { PTreeNodeComponent } from './p-tree-node/p-tree-node.component';

@NgModule({
    imports: [
        CommonModule,
        FormsModule,
        PermissionsRoutingModule,
        NotificationModule,
        Ng2BootstrapModule,
        PaginationModule.forRoot(),
    ],
    declarations: [
        AccountComponent,
        RoleComponent,
        PermissionComponent,
        CategoryComponent,
        PTreeComponent,
        PTreeNodeComponent
    ],
    providers: [
        RoleService
    ]
})
export class PermissionsModule {
}
